-
Notifications
You must be signed in to change notification settings - Fork 8.4k
feat: add variant support for subagents (#7138) [alt of #7140] #7156
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: dev
Are you sure you want to change the base?
feat: add variant support for subagents (#7138) [alt of #7140] #7156
Conversation
|
The following comment was made by an LLM, it may be inaccurate: Potential Duplicates FoundPR #7140: Add default variant config per agent Why related: This is the primary implementation that the current PR (#7156) is an alternative version of. According to the PR description, #7156 is an alternative implementation for #7138 that includes additional changes not present in #7140, specifically:
The PR author explicitly states they're "happy to close this if #7140 incorporates these changes," indicating these are addressing the same feature with slightly different approaches. |
|
@CasualDeveloper we can do ur change if u want but I think ti requires updates to both tui AND desktop |
11edba0 to
9cc62c8
Compare
9cc62c8 to
ae2dd3e
Compare
|
Thanks @rekram1-node! I've updated this PR to include both TUI and desktop support: TUI: Both now have:
The Ready for review when you have time! |
07c8bd5 to
065875f
Compare
065875f to
6088a6f
Compare
2e9637c to
d415762
Compare
ebc6274 to
e6df31e
Compare
|
@rekram1-node hi Aiden, thanks for the thorough feedback. Had my Claude address all 12 comments and reduce the scope from 21 → 13 files. Changes:
MVP scope retained:
Ready for another look when you have time. P.S. I do have a couple points I wanna ask you on how we should handle them:
I think it'd be better to add variant back to the schema and display it in the header.
|
I'd prefer not to bloat the task tool for now, it still has optimizations to be ha |
fed75bc to
d92432d
Compare
P.S. included your commit to remove the variant from duplicate-pr.md when I rebased off latest dev just now |
|
/review |
|
lgtm |
|
Sorry to jump in, but I think this is what I'd expect (as a user) - the variant in the agent config should be used when I don't set a variant explicitly. In your screenshot it looks like you set |
|
@rekram1-node @mjakl this feature was intended to add variant support for subagents and not main agents, because main agents have always had support for setting variants via ctrl+t original problem:
then i designed the feature so it became:
|
|
@CasualDeveloper thanks for the clarification, and right, the title of the PR is quite clear on that. Though, I would expect that the variant defined with the agent (no matter whether primary or sub-agent) to be applied, unless I override it with an explicit setting ( Note: that's just how I hoped it would work, of course there can be reasons for a different mechanic, or simply different taste (esp. whether or not to use the explicit setting for the sub-agent as well). |
|
Being able to set variant on main agent is useful for me too, as I prefer to use |
- Add variant field to agent config schema - Resolve variant with priority: user input > agent config > none - Display effective variant in TUI and desktop prompt bar - Subagents use their own configured variant (not inherited) - Add variant examples to triage and duplicate-pr agents - Add unit tests for agent variant configuration Closes anomalyco#7138
d92432d to
81712d7
Compare
|
@mjakl @axsuul @rekram1-node
Personally, I feel like this more about about TUI state management for main agents rather than the original issue, so my vote is to leave as-is for MVP and revisit as a follow-up. Happy to take in feedback on this though. |


Summary
Adds agent-level default
variantconfiguration so each agent can define a preferred reasoning effort (e.g., "low", "medium", "high"). User-provided variants still take precedence.Resolution order: user input > agent config
Changes
Core backend
variantfield to agent config schemallm.tsusinginput.user.variant ?? input.agent.variantTUI / Desktop
Example
Agent config:
Closes #7138